package com.example.administrator.testxingpiao.ui.main.mine;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.administrator.testxingpiao.R;
import com.example.administrator.testxingpiao.base.BaseFragment;
import com.example.administrator.testxingpiao.ui.login.LoginActivity;

/**
 * Created by Administrator on 2016/8/4.
 */
public class MineFragment extends BaseFragment {
    private TextView mTextViewAdress;
    private TextView mTextViewLogin;
    private TextView mTextViewSet;
    private TextView mTextViewMyOrder;
    private TextView mTextViewOtherOrder;
    private TextView mTextViewMyWealth;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View minefragment=inflater.inflate(R.layout.mine_fragment,container,false);
        mTextViewLogin= (TextView) minefragment.findViewById(R.id.login);
        mTextViewAdress= (TextView) minefragment.findViewById(R.id.text_adressmanager);
        mTextViewSet= (TextView) minefragment.findViewById(R.id.textviewset);
        mTextViewMyOrder= (TextView) minefragment.findViewById(R.id.textviewmyorder);
        mTextViewMyWealth= (TextView) minefragment.findViewById(R.id.textviewmywealth);
        mTextViewOtherOrder= (TextView) minefragment.findViewById(R.id.textviewotherorder);
        mTextViewLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(),LoginActivity.class);
                startActivity(intent);
            }
        });
        mTextViewAdress.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(),AdressActivity.class);
                startActivity(intent);
            }
        });
        mTextViewSet.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(),UserSetActivity.class);
                startActivity(intent);
            }
        });
        mTextViewMyOrder.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(),MovieOrderActivity.class);
                startActivity(intent);
            }
        });
        mTextViewOtherOrder.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(),OtherOrderActivity.class);
                startActivity(intent);
            }
        });
       mTextViewMyWealth.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(),MyWealthActivity.class);
                startActivity(intent);
            }
        });
        return minefragment;
    }
}
